package netty.customs.domain;

import lombok.Data;

import java.util.HashMap;
import java.util.Map;

/**
 * @program JavaBase
 * @description: 请求header
 * @author: zhanglu
 * @create: 2021-10-29 10:31:00
 */
@Data
public class NettyRequestHeader {

    private int crcCode = 0xabef0101;
    /**
     * 消息长度
     */
    private int length;
    /**
     * 会话ID
     */
    private long sessionID;
    /**
     * 消息类型
     */
    private byte type;
    /**
     * 消息优先级
     */
    private byte priority;
    /**
     * 附件
     */
    private Map<String, Object> attachment = new HashMap<>();

}
